package code.rocky.chapter08;

public class Suggest115 {
    public static void main(String[] args) {
        StackTraceElement[] stackTrace = new Throwable().getStackTrace();
        for (StackTraceElement element : stackTrace) {
            System.out.println(" >> "  + element);
            if (element.getMethodName().equals("m1")) {
                return;
            }
        }
    }
}
